/*
 * @Script: 1.c
 * @Author: ystlong
 * @Email: ystlong@163.com
 * @Create At: 2021-03-23 19:53:12
 * @Last Modified By: ystlong
 * @Last Modified At: yyyy-03-dd 19:56:12
 * @Description: This is description.
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int check_rnum(const char *num, int num_len)
{
    if (num == NULL) return 0;
    for(int i=0; i<num_len/2; i++) {
        if (num[i] != num[num_len - i - 1]) return 0;
        if (num[i] < '0' || num[i] > '9') return  0; // not number
    }
    return 1;
}

int main()
{
    char num_buf[101] = {0};
    // int n = fread(num_buf, 1, 100,stdin);
    scanf("%s", num_buf);
    // printf("%d \n", n);
    if (check_rnum(num_buf, strlen(num_buf))){
        printf("%s is huiwenshu\n", num_buf);
    }else{
        printf("%s is not huiwenshu\n", num_buf);
    }
    return 0;
}

